package com.tjbank.cssys.mybatis.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * iam 日志信息
 */
public class IamLog extends IamLogKey implements Cloneable, Serializable {
    private static final long serialVersionUID = -161123581321345589L;
    /** 日志类型 1登录日志，2修改密码..*/
    protected String logType;

    /** 日志时间 [19,0] */
    protected Date logTime;

    /** 日志用户id */
    protected String logUser;

    /** 日志信息 */
    protected String logNote;

    public IamLog() {
        super();
    }

    public IamLogKey primaryKey() {
        return new IamLogKey(id);
    }

    public String getLogType() {
        return logType;
    }

    public void setLogType(String logType) {
        this.logType = logType;
    }

    public Date getLogTime() {
        return logTime;
    }

    public void setLogTime(Date logTime) {
        this.logTime = logTime;
    }

    public String getLogUser() {
        return logUser;
    }

    public void setLogUser(String logUser) {
        this.logUser = logUser;
    }

    public String getLogNote() {
        return logNote;
    }

    public void setLogNote(String logNote) {
        this.logNote = logNote;
    }


    /** 浅克隆 */
    @Override
    public IamLog clone() {
        IamLog cloneIamLog = null;
        try {
            cloneIamLog = (IamLog) super.clone();
        } catch (CloneNotSupportedException e) {
            throw new RuntimeException(e);
        }
        return cloneIamLog;
    }

    @Override
    public String toString() {
        return "IamLog{" +
                "logType=" + logType +
                ", logTime=" + logTime +
                ", logUser='" + logUser + '\'' +
                ", logNote='" + logNote + '\'' +
                ", id='" + id + '\'' +
                '}';
    }
}
